package com.xiaoge.libraryuse.activity;

import android.os.Bundle;

import com.xiaoge.basedevlibrary.base.GuoBaseActivity;
import com.xiaoge.libraryuse.R;

public class LeftInRightOutActivity extends GuoBaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_left_in_right_out);
    }


    /**
     * 左侧进入右侧返回必须重写这个方法 当按下返回键后
     */
    @Override
    public void onBackPressed() {
        super.onBackPressed();
        // 实现右侧退出功能必须重写这个方法  推荐将此功能写在BaseActivity中
        overridePendingTransition(R.anim.push_right_in, R.anim.push_right_out);
    }
}
